//
// Created by LiuYou on 2021/10/12.
//

#include <iostream>
#include <unistd.h>


//#define test1


static void* aThread(void* args) {
    std::cout << pthread_self() << std::endl;
//    printf( "tid: %lu\n", pthread_self());

    pthread_exit( nullptr );
}


int main(int argc, char** argv) {
#ifdef test1
    {
        Counter aCounter( 100 );
        std::cout << aCounter << std::endl;

        std::cout << "aCounter.getValue() = " << aCounter.getValue() << std::endl;
        std::cout << "aCounter.getAndIncrease() = " << aCounter.getAndIncrease() << std::endl;

        std::cout << aCounter << std::endl;
    }
#endif

    // argc argv args arg
    pthread_t tid;
    pthread_create( &tid, nullptr, aThread, /*threadArgs*/nullptr );

//    while (1) {
//        pause();
//    }
    sleep( 1 );

    return 0;
}
